columns[1] = G_TYPE_BOOLEAN;
store = gtk_tree_store_newv (2, columns);
model = GTK_TREE_MODEL (store);
+ GList *junk = NULL;
/*http://bugzilla.gnome.org/show_bug.cgi?id=346800 */
{
/* allocate random amounts of junk, otherwise the filter model's arrays can expand without moving */
- g_malloc (138);
+ junk = g_list_append (junk, g_malloc (138));
gtk_tree_store_append (store, &node_iters[i], NULL);
gtk_tree_store_set (store, &node_iters[i],
0, "something",
1, ((i%6) == 0) ? FALSE : TRUE,
-1);
- g_malloc (47);
+ junk = g_list_append (junk, g_malloc (47));
gtk_tree_store_append (store, &child_iters[i], &node_iters[i]);
gtk_tree_store_set (store, &child_iters[i],
0, "something else",
gtk_tree_model_filter_refilter (filter);
}
}
+
+ g_list_free_full (junk, g_free);
}
static gboolean
gtk_text_buffer_get_end_iter (buffer, &end);
buffer_contents = gtk_text_buffer_get_text (buffer, &start, &end, FALSE);
g_assert_cmpstr (buffer_contents, ==, contents);
+ g_free (buffer_contents);
}
static void
g_print ("option parsing failed: %s\n", error->message);
return FALSE;
}
+ g_option_context_free (context);
for (i = 0; i < *argc; i++)
{
}
remove_extra_css (provider);
+
+ g_free (ui_file);
}
static int